package net.cellkyborg.server;

public class Items {
	static final int[] boots = { 88, 89, 626, 628, 630, 632, 634, 1061, 1837,
			1846, 2577, 2579, 2894, 2904, 2914, 2924, 2934, 3061, 3105, 3107,
			3393, 3791, 4097, 4107, 4117, 4119, 4121, 4123, 4125, 4127, 4129,
			4131, 4310, 5064, 5345, 5557, 6061, 6069, 6106, 6106, 6143, 6143,
			6145, 6147, 6328, 7596, 11728, 11732 };

	static final int[] capes = { 1007, 1019, 1021, 1023, 1027, 1029, 1031,
			1052, 2412, 2413, 2414, 4041, 4042, 4304, 4315, 4317, 4319, 4321,
			4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 4339, 4341, 4343,
			4345, 4347, 4349, 4351, 4353, 4355, 4357, 4359, 4361, 4363, 4365,
			4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4385, 4387,
			4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409,
			4411, 4413, 4514, 4516, 6070, 6111, 6568, 6568, 6570, 6570, 7623,
			9747, 9748, 9750, 9751, 9753, 9754, 9756, 9757, 9759, 9760, 10635,
			10636, 10637, 10638, 10639, 10640, 10641, 10642, 10643, 10644,
			10645, 10646, 10647, 10648, 10649, 10650, 10651, 10652, 10653,
			10654, 10655, 10656, 10657, 10658, 10659, 10660, 10661, 10662 };

	static final int[] gloves = { 775, 777, 778, 1059, 1063, 1065, 1065, 1495,
			1580, 2487, 2487, 2489, 2489, 2491, 2491, 2902, 2912, 2922, 2932,
			2942, 3060, 3060, 3391, 3799, 4095, 4105, 4115, 4308, 5556, 6068,
			6110, 6149, 6151, 6153, 6708, 7460, 7461, 7462, 7462, 7595 };

	static final int[] shields = { 1171, 1173, 1175, 1177, 1179, 1181, 1183,
			1185, 1187, 1189, 1191, 1193, 1195, 1197, 1199, 1201, 1540, 2589,
			2597, 2603, 2611, 2621, 2629, 2659, 2667, 2675, 2890, 3122, 3488,
			3758, 3839, 3840, 3841, 3842, 3843, 3844, 4072, 4156, 4224, 4225,
			4226, 4227, 4228, 4229, 4230, 4231, 4232, 4233, 4234, 4302, 4507,
			4512, 6215, 6217, 6219, 6221, 6223, 6225, 6227, 6229, 6231, 6233,
			6235, 6237, 6239, 6241, 6243, 6245, 6247, 6249, 6251, 6253, 6255,
			6257, 6259, 6261, 6263, 6265, 6267, 6269, 6271, 6273, 6275, 6277,
			6279, 6524, 6889, 7053, 7332 };

	static final int[] hats = { 1167, 1169, 1149, 4753, 4732, 4745, 4856, 4857,
			4858, 4859, 4880, 4881, 4882, 4883, 4904, 4905, 4906, 4907, 4928,
			4929, 4930, 4931, 4952, 4953, 4954, 4955, 4976, 4977, 4978, 4979,
			4611, 6188, 6182, 4511, 4056, 4071, 4724, 2639, 2641, 2643, 2665,
			6109, 5525, 5527, 5529, 5531, 5533, 5535, 5537, 5539, 5541, 5543,
			5545, 5547, 5549, 5551, 74, 579, 656, 658, 660, 662, 664, 740,
			1017, 1037, 1038, 1040, 1042, 1044, 1046, 1048, 1050, 1053, 1055,
			1057, 1137, 1139, 1141, 1143, 1145, 1147, 1151, 1153, 1155, 1157,
			1159, 1161, 1163, 1165, 1506, 1949, 2422, 2581, 2587, 2595, 2605,
			2613, 2619, 2627, 2631, 2633, 2635, 2637, 2651, 2657, 2673, 2900,
			2910, 2920, 2930, 2940, 2978, 2979, 2980, 2981, 2982, 2983, 2984,
			2985, 2986, 2987, 2988, 2989, 2990, 2991, 2992, 2993, 2994, 2995,
			3057, 3385, 3486, 3748, 3749, 3751, 3753, 3755, 3797, 4041, 4042,
			4071, 4089, 4099, 4109, 4164, 4302, 4506, 4511, 4513, 4515, 4551,
			4567, 4708, 4716, 4724, 4856, 4857, 4858, 4859, 4880, 4881, 4882,
			4883, 4904, 4905, 4906, 4907, 4952, 4953, 4954, 4955, 4976, 4977,
			4978, 4979, 5013, 5014, 5554, 5574, 6109, 6128, 6131, 6137, 6182,
			6188, 6335, 6337, 6339, 6345, 6355, 6365, 6375, 6382, 6392, 6400,
			6656, 6918, 7003, 7394, 7532, 7594, 9749 };

	static final int[] amulets = { 86, 87, 295, 421, 552, 589, 1478, 1692,
			1694, 1696, 1698, 1700, 1702, 1704, 1706, 1708, 1710, 1712, 1725,
			1727, 1729, 1731, 4021, 4081, 4250, 4677, 6040, 6041, 6208, 6585,
			7803 };

	static final int[] arrows = { 78, 598, 877, 878, 879, 880, 881, 882, 883,
			884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 942, 2532, 2533,
			2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2866, 4160, 4172,
			4173, 4174, 4175, 4740, 5616, 5617, 5618, 5619, 5620, 5621, 5622,
			5623, 5624, 5625, 5626, 5627, 6061, 6062, };

	static final int[] rings = { 773, 1635, 1637, 1639, 1641, 1643, 1645, 2550,
			2552, 2554, 2556, 2558, 2560, 2562, 2564, 2566, 2568, 2570, 2572,
			4202, 4657, 6465, 6731, 6735 };

	static final int[] legs = { 428, 538, 542, 548, 1011, 1013, 1015, 1033,
			1067, 1069, 1071, 1073, 1075, 1077, 1079, 1081, 1083, 1085, 1087,
			1089, 1091, 1093, 1095, 1099, 1835, 2493, 2495, 2497, 2585, 2593,
			2601, 2609, 2617, 2625, 2655, 2663, 2671, 3059, 3389, 3472, 3473,
			3474, 3475, 3476, 3477, 3478, 3479, 3480, 3483, 3485, 3795, 4070,
			4087, 4093, 4103, 4113, 4505, 4510, 4585, 4712, 4714, 4722, 4730,
			4738, 4751, 4759, 4874, 4875, 4876, 4877, 4898, 4899, 4900, 4901,
			4922, 4923, 4924, 4925, 4946, 4947, 4948, 4949, 4970, 4971, 4972,
			4973, 4994, 4995, 4996, 4997, 5048, 5050, 5052, 5555, 5576, 6108,
			6130, 6135, 6141, 6181, 6185, 6187, 6386, 6390, 6390, 6396, 6404,
			6655, 6924, 7386, 7593, 11722, 11726 };

	static final int[] chests = { 284, 426, 540, 577, 1005, 1035, 1101, 1103,
			1105, 1107, 1109, 1111, 1113, 1115, 1117, 1119, 1121, 1123, 1125,
			1127, 1129, 1131, 1133, 1135, 1355, 1757, 1833, 2499, 2501, 2503,
			2583, 2591, 2599, 2607, 2615, 2623, 2653, 2661, 2669, 3058, 3140,
			3387, 3481, 4069, 4091, 4101, 4111, 4504, 4509, 4712, 4720, 4728,
			4728, 4736, 4736, 4749, 4757, 4892, 4893, 4894, 4895, 4916, 4917,
			4918, 4919, 4964, 4965, 4966, 4967, 5030, 5032, 5034, 5553, 6107,
			6133, 6180, 6184, 6186, 6322, 6384, 6388, 6916, 6916, 7390, 7592 };

	static final int[] fullHelms = { 1149, 1153, 1155, 1157, 1159, 1161, 1163,
			1165, 2587, 2595, 2605, 2613, 2619, 2627, 2657, 2665, 2673, 3486,
			4056, 4071, 4511, 4724, 4745, 4753, 6109, 6131, 6137, 6188, 6394,
			6402, 7003, 7534, 7594, 11718 };

	static final int[] fullMasks = { 1053, 1055, 1057, 1167, 1169, 2665, 3507,
			4056, 4071, 4511, 4611, 4708, 4716, 4724, 4724, 4732, 4732, 5554,
			6109, 6131, 6137, 6188, 7003 };

	static final int[] plateBody = { 284, 426, 540, 577, 1035, 1115, 1117,
			1119, 1121, 1123, 1125, 1127, 1355, 1833, 1835, 2583, 2591, 2599,
			2607, 2615, 2623, 2653, 2661, 2661, 2669, 3058, 3140, 3481, 4069,
			4091, 4091, 4101, 4111, 4504, 4509, 4712, 4720, 4728, 4728, 4736,
			4749, 4757, 4868, 4869, 4870, 4871, 4892, 4893, 4894, 4895, 4916,
			4917, 4918, 4919, 4940, 4941, 4942, 4943, 4964, 4965, 4966, 4967,
			4988, 4989, 4990, 4991, 5030, 5032, 5034, 5553, 6107, 6133, 6139,
			6180, 6184, 6186, 6384, 6388, 6654, 6916, 7390, 11720, 11724 };

	static final int[] weapons2H = { 839, 841, 843, 845, 847, 849, 851, 853,
			855, 857, 859, 861, 863, 1237, 1239, 1241, 1243, 1245, 1247, 1249,
			1251, 1253, 1255, 1257, 1259, 1261, 1263, 1307, 1309, 1311, 1313,
			1315, 1317, 1319, 3170, 3171, 3172, 3173, 3174, 3175, 3176, 3190,
			3192, 3194, 3196, 3198, 3200, 3202, 3204, 4153, 4212, 4214, 4215,
			4216, 4217, 4218, 4219, 4220, 4221, 4222, 4223, 4675, 4710, 4718,
			4726, 4734, 4747, 4755, 4862, 4863, 4864, 4865, 4886, 4887, 4888,
			4889, 4910, 4911, 4912, 4913, 4934, 4935, 4936, 4937, 4958, 4959,
			4960, 4961, 4982, 4983, 4984, 4985, 6527, 6609, 7158, 7809, 11694,
			11696, 11698, 11700 };

	static final int[] weapons1H = { 35, 667, 1265, 1267, 1269, 1271, 1273,
			1275, 1277, 1279, 1281, 1283, 1285, 1287, 1289, 1291, 1293, 1295,
			1297, 1299, 1301, 1303, 1305, 1321, 1323, 1325, 1327, 1329, 1331,
			1333, 1335, 1337, 1339, 1341, 1343, 1345, 1347, 1349, 1351, 1353,
			1355, 1357, 1359, 1361, 1363, 1365, 1367, 1369, 1371, 1373, 1375,
			1377, 1379, 1381, 1383, 1385, 1387, 1389, 1391, 1393, 1395, 1397,
			1399, 1401, 1403, 1405, 1407, 1409, 1420, 1422, 1424, 1426, 1428,
			1430, 1432, 1434, 2415, 2416, 2417, 4151 };

	public static boolean itemIsAmulet(int itemID) {
		for (int i = 0; i < amulets.length; i++) {
			if (itemID == amulets[i])
				return true;
			else if (itemID < amulets[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsArrows(int itemID) {
		for (int i = 0; i < arrows.length; i++) {
			if (itemID == arrows[i])
				return true;
			else if (itemID < arrows[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsBoots(int itemID) {
		for (int i = 0; i < boots.length; i++) {
			if (itemID == boots[i])
				return true;
			else if (itemID < boots[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsCape(int itemID) {
		for (int i = 0; i < capes.length; i++) {
			if (itemID == capes[i])
				return true;
			else if (itemID < capes[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsChest(int itemID) {
		for (int i = 0; i < chests.length; i++) {
			if (itemID == chests[i])
				return true;
			else if (itemID < chests[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsFullHelm(int itemID) {
		for (int i = 0; i < fullHelms.length; i++) {
			if (itemID == fullHelms[i])
				return true;
			else if (itemID < fullHelms[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsFullMask(int itemID) {
		for (int i = 0; i < fullMasks.length; i++) {
			if (itemID == fullMasks[i])
				return true;
			else if (itemID < fullMasks[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsGloves(int itemID) {
		for (int i = 0; i < gloves.length; i++) {
			if (itemID == gloves[i])
				return true;
			else if (itemID < gloves[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsHat(int itemID) {
		for (int i = 0; i < hats.length; i++) {
			if (itemID == hats[i])
				return true;
			else if (itemID < hats[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsLegs(int itemID) {
		for (int i = 0; i < legs.length; i++) {
			if (itemID == legs[i])
				return true;
			else if (itemID < legs[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsPlateBody(int itemID) {
		for (int i = 0; i < plateBody.length; i++) {
			if (itemID == plateBody[i])
				return true;
			else if (itemID < plateBody[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsRing(int itemID) {
		for (int i = 0; i < rings.length; i++) {
			if (itemID == rings[i])
				return true;
			else if (itemID < rings[i])
				return false;
		}
		return false;
	}

	public static boolean itemIsShield(int itemID) {
		for (int i = 0; i < shields.length; i++) {
			if (itemID == shields[i])
				return true;
			else if (itemID < shields[i])
				return false;
		}
		return false;
	}

	public static boolean itemIs2H(int itemID) {
		for (int i = 0; i < weapons2H.length; i++) {
			if (itemID == weapons2H[i])
				return true;
			else if (itemID < weapons2H[i])
				return false;
		}
		return false;
	}

	public static boolean itemIs1H(int itemID) {
		for (int i = 0; i < weapons1H.length; i++) {
			if (itemID == weapons1H[i])
				return true;
			else if (itemID < weapons1H[i])
				return false;
		}
		return false;
	}

	/*
	 * Customs methods
	 * 
	 */

	public static boolean itemIsHelmet(int itemID) {
		if (itemIsFullHelm(itemID) || itemIsFullMask(itemID)
				|| itemIsHat(itemID))
			return true;
		else
			return false;
	}

	public static boolean itemIsTorso(int itemID) {
		if (itemIsChest(itemID) || itemIsPlateBody(itemID))
			return true;
		else
			return false;
	}
}
